package com.vivachek.protocol.converts

/**
 * @Author: YCB
 * @Time: 2022/10/17 18:07:32
 * @Email: congbin.yuan@vivachek.com
 * @Description: 解析code chip
 */
private const val COMMAND = 21
private const val EXPAND_CODE = 170
private const val LENGTH = 2
internal class CodeChipConvert: DataConvert(COMMAND, EXPAND_CODE,LENGTH){
    override fun parse(data: List<Int>,origin:List<Int>) {
        listener?.codeChip(data.first()*100+ data[1])
    }
}